package cn.wolfcode.luowowo.article.util;

import lombok.Getter;

import java.util.HashMap;
import java.util.Map;

@Getter
public class TravelCondition {
    public static final Map<Integer,TravelCondition> TRAVEL_DAYS = new HashMap<>();
    public static final Map<Integer,TravelCondition> TRAVEL_MONTHS = new HashMap<>();
    public static final Map<Integer,TravelCondition> TRAVEL_PEREXPENDS = new HashMap<>();
    static {
        TRAVEL_DAYS.put(1,new TravelCondition(0,3));
        TRAVEL_DAYS.put(2,new TravelCondition(4,7));
        TRAVEL_DAYS.put(3,new TravelCondition(8,14));
        TRAVEL_DAYS.put(4,new TravelCondition(15,Integer.MAX_VALUE));

        TRAVEL_MONTHS.put(1,new TravelCondition(1,2));
        TRAVEL_MONTHS.put(2,new TravelCondition(3,4));
        TRAVEL_MONTHS.put(3,new TravelCondition(5,6));
        TRAVEL_MONTHS.put(4,new TravelCondition(7,8));
        TRAVEL_MONTHS.put(5,new TravelCondition(9,10));
        TRAVEL_MONTHS.put(6,new TravelCondition(11,12));

        TRAVEL_PEREXPENDS.put(1,new TravelCondition(1,999));
        TRAVEL_PEREXPENDS.put(2,new TravelCondition(1000,6000));
        TRAVEL_PEREXPENDS.put(3,new TravelCondition(6000,20000));
        TRAVEL_PEREXPENDS.put(4,new TravelCondition(200001,Integer.MAX_VALUE));
    }
    private int min;
    private int max;
    public TravelCondition(int min,int max){
        this.min = min;
        this.max = max;
    }
}
